Added test for illegal positions