Add tests for login and http checks

@rlucioni Tests!