updating spec tests for initializing classes