Add tests to sales engine class