Fix creating spatial classification, s.: hbz/nwbib#7

* add test