fixed testing to allow proper importing, added the flipText code