Removed bad tests, added API tests, added login and logout api