added test, fixed gzip loader