Add integration tests

As happens, I stumbled upon the strange fact that I've left out the function
return values. Implemented them, but now it's an ugly hack yet, as I've got
back "string", not *string.