Testing function for filestream