fixing assertion for testSurfaceHelper