Porting file test from browsertests

Testing in bare wiki, beta enwiki and hewiki

Change-Id: If8262a7798c19dad84f9ceb88a5e286a90cf2a39
Merge "Porting file test from browsertests"