HRA gains plaudits but terrorist legislation set to test it to the full