fixing issue with checkIfEnoughData unit test where the test was passing when it should have been failing