Adds tests for product attributes in basket controller and implements minor improvements