add controller test for register action