Unit tests for location field