Added test for switching link between transaction and event