removed stubbing for register in order to have the real behaviour of the application and made the test easier to read