Add some basic tests for logged-in display [#11]

(the changes in e50b28d6d94dc7e06b6828f941ccf40495dad8fd)