wrap onLoad function in a test for data name