Make travis fail is test request had errors

This will add missing -f switch to curl options so that it will exit with non-zero return code if request fails. Right now it's always zero no matter if request was succeeded or not.