Moved test base classes to main source folder (needed by deps).