fixed precedence for cat and changes test files