add test for weight