Added tests for invalid positions