improved test framework, fixed indentation parsing error