Optimize Comparator, JUnit test case and add toString() to WebShop.