dry up dependencies in tests
refactor reading fixture in tests
Merge pull request #3 from hdemon/refactor-test

Refactor test