Add more tests for resource validator