Add test `run_as_logged_user` in test suite