Test for creating location