Noah's changes: testLineLevel, repeat and testRepeat