Make proper test suite of the nodejs compare module