Add better tests for sales engine

Updated and refactored some little stuff

Rake no longer takes 1 second to run