[test] cleanup + added test for validation when register an user

IntelliJ show me, that this element is not allowed here.