Add tests for AbstractResource