add unit test for weighIn ctrl