Separated testing code from class definitions.