Add a tests bootstrap to define JPATH_ROOT
Move code into src/ and use PSR-4