all tests do pass in browser
make comparing time use time precision constant