OZP-64: Refactoring functional tests

Moving common code to superclass
OZP-64: Attempting to fix intermittent functional test failures