more unit tests & fix placement overlap calculation