Test that users are correctly determined