In unit tests, fix bugs about float comparison
Merge pull request #134 from tomtung/master

Fix float comparison bugs in unit tests