added test cases for Modal events.
fixed test cases for layers and tab bar
fixed a modal test case