fix unit test when sping is not present