check if user is logged in before reboot

other wishlist/low priority stuff
In existing tests, there is also one test with '(0)' and one with '()'