Added sleep to get test to work for travis