Added some logging and a simple unit test to check that locations
get initialized.