Writing test cases for element binding