Add somr new tests on user operations.
Fix some bugs and add new methods.