Added test cases for resource. But these are not complete yet