Added new ptests and negate algorithm