adjusted test and added skeleton function for addUser