50 fix get episodes

A unit test for issue #50, and an attempt to fix it.