Improved testing framework, login API tests