testcases for registration
Tests were migrated to mocha+chai+sinon