Test InputStorage and OutputStorage

This fixes #149.