Fixes #14
Added some tests for the registration form