Fixed incorrect assertion in test
Fixed issue with handling thumbnails, cleared out unused endpoints