Added tests for user