Add test for chaining .map, .filter and .sortBy