Added unit test for a non-protected resource and made sure that newly added check_login works