Removed debug code
Added sale endpoints and refactored tests