defining units and testing those units