fixed double comparison problems
Merge pull request #105 from occamlabs/linearization-test-fixes

Fixed double comparison problems