added test for missing user id