Refactor tests to allow easier testing of claims requests.
Update version to 0.3.1