Changed tests and user repository