added test and example for creating location blocks