added Triplet unittest
Merge pull request #19 from whyi/Triplet

added Triplet unittest