Fixed some problems and add a new test scene.