render test: fix to use new API
Move new functions into render namespace