reorganized tests and got login test working #19
actually login after registering #19