Test isInsdie logic