Added tests for classes.