We should probably store weights as floats and not as ```numeric```. Not in the scope of this pull request (where imho this unit test is appropriate).