Replace annotations for declarations in unit test cases
Rename RestDeclaration to RestRegistration