converting to TDD tutorial, with more controlled env