support gopkg properly; add a test