added tests for if using mocha