add tests for class-generator.js