Improved cloudtrail unit test