Added a few tests for api transactions