load_payload: fix wrong compression check, fix wrong datatype in test
Merge pull request #18 from ThomasWaldmann/master

fix load_payload