Fix unexpectedly ignored and repeated tests