fixed bug in generatedContinuityTest, really need to refactor this code