Accessing struct fields inside tests

Hello people, I have just begun working in Move and I am having trouble writing tests, due to the visibility constraints. When I started writing out the contract, the tests were within the same module and things worked fine. But now I need to refactor them into separate modules since the tests have become quite long. How am I supposed to access internal fields of a struct inside my tests, to write various assertion tests? How am I supposed to access the contents of the dynamic fields of a collection, such as a table? For example:

public struct OrdersRegistry has key, store {
        id: UID,
        orders: Table<vector<u8>, ID>
}

Please help me out guys.

You can create accessors for your struct and mark them #[test_only], if you don’t want them to be publicly available.