Working user registration and respective unit tests