Add locationParse tests and fix bug in /model/form