test for class as code
added test case for default class