Change absolute import to local imports
Add testcases for custom types.
Merge pull request #1 from andrei-alpha/custom_test.go

Add testcases for custom types.