Fixed LocationTest compilation errors