Limit a tests to opt and oprof

closes #2653