Fixed koala_login and logout, added keypair test