add test for onclick javascript location change