added tests, started using gocheck