* move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
* Fix tests code to prevent some runtime errors * Reduce nesting