Added test cases for register logic and validation.  Some tests fail