Added user resource object unit test.