added unit tests

added unit tests to exercise registration extension methods