[tests] Moving common configuration to setup and teardown
[opf] implementation and tests of retrieve object