A study of a test APF-IH type linac as an injector for cancer therapy