move renderQueue to tests