Make loginCheck tests JSON-based