Add weight parsing tests