Fixed issues. Added tests for UsersProvider