Refactored the test again to attempt to simplify it and track down the error preventing the test from passing on Travis