created functional test directory, python module to store tessts of this kind and moved the existing test