Migrate unit tests to rspec (to be able to disable them in self-registra...

...tion per mail).