fixed client.sales_count test that passed but for the wrong reasons
add before_save hooks to Sale to update count_caches on Piece and Client on updating a sale (as opposed to creating/destroying where the count caches are updated  automatically, by Rails)