added q promise library to wait for test data inserting into db before running actual tests