Add functional test

- Adds a basic functional test
- Also tests the library on go 1.3