Fixed locMove producing invalid locations and added more tests.