assert_spatial_task function

Check spatial task