migrated TextPath and Shape tests to mocha