add locations, fix test, add checkstyle