Add tests for weight update

groonga/groonga@a5d40c9d4507eb11586fe1aea448a6d6485962f6 fixes the bug
of the case.