Add basic integration test
Suppress compiler warnings in GCC 4.7 about signed/unsigned mismatches