Added unit tests for the underlying  ``Resource`` code.