Fix compilation errors with assert usage in new test