refactored sale test and incorporated to.be.empty where possible