Implement deploy test, refactor extracting BaseTestCase (TUI-18)