deploy tests
fix testcases
shorten code for compactLine