add test_decoded_weight_matrix to tests