relocate login, logout code to test setUp, tearDown