Add more tests for child binding and some code formatting