added empty cart functionality and corresponding test updates