add test function to chrome extension