Business  logic tests