replace sdferr with gzerr for gazebo 1.9 compatibility, add test files for spawning with joint positions.