improved SP tests