Added tests for Register class