adding test for register