add guard and registration controller json create test