Add tests for sales_engine class and add sales_engine class