parser integration test: use std::istream as a template argument for std::shared_ptr

gcc 4.4 has problems with such implicit conversions...