[FIX] Bad test updated
[FEAT] Wrapping api_method with login and logout