added register unit test

added in unit test