Added tests for getTransaction