add specs for class methods