Added test case for weight fields.