add unit test for duplicate user ids (fix later!!)