first funtional test specced out in comments, and now uses unittest