Fixed tests for edit locations