Still more work on unit tests. Almost done with tests for logged-out user