First functional test outlined in comments, and now uses unittest