Limiting tests to opt and oprof (closes #2653)