add tests for market offers
Fixed assumption that market would be at index 0

also fixed lint errors
Merge pull request #43 from weissjeffm/pr/42

Fixes for market tests on #42