I think this should be a [table-driven test](https://code.google.com/p/go-wiki/wiki/TableDrivenTests) so that we can add more test cases easily.