Improves tests and code for basket part in catalog detail view