[Argha,Nim] added unit test to verify that the registration script does closest possible match for Locations