move tests around so that we can create an application
implement logout behaviour