Moved test generator to tests directory