wrote tests for control class