allow abs paths in test cases
moved common code to common