test inputstream