fix tests
use newLine function
fix python tests