Added Gets method to State along with unit test