adds test cases for check_login
adds addQuery function
adds more queries to TestCheckLogin test suite