modularized, reads tests directory