Add extened liquid filters' test cases, fix bugs found