Fix testing and test login