Add tests for users. fixes #27