Added a possibility to override work dir location for tests