Move tests directory and fix examples