Test location formatter. Fixes #458