Remove assert from unit test in code path triggered on non-optimzed platforms