start of tests and fixes for weights.