Fixed an error in space test