Fixes to tests to support intel compiler builds in release mode.