fixing tests for travis which doesnt like setTimeout