added spawn_typed unit test