added some code to the test functions for application controller patter
as well as for the new code to pass in the actual div onclick.