Added phing and tests