Limits tests to opt and oprof

Closes #2653 
- `mesh_only_test` is timing out in debug on multiple systems, so the test is being limited to `opt` and `oprof`
- `wrong_object_test` is printing a `[` in debug mode, otherwise the error is correct, so limiting to `opt` and `oprof`