Modified the runTests so that node exits correctly after tests run