Determine test directory from class