added _get method to return contents and associated test.