Move testing resources into common file
Add files_tests.py
Extract argument building
Refactor postgresql args function
Add commands_tests.py