Build fixes

This resolves issues with Travis removing their maven repository, as well as adds a small sleep to fix a flaky unit test.