load_payload: fix wrong compression check, fix wrong datatype in test