Added tests for AccountDetails

Added correct error condition handling in Swift.Core