[tests] add web api test for files