added tests for baseresource endpoint class
(hopefully) resolved merge conflicts.
added more comprehensive test cases for baseresource class.
Merge pull request #28 from skibz/tests/baseresource

Add tests for BaseResource.