fix location tests