Fixed bug that prevented tests with 0 weight