Basic behaviour tests for the json cleaner middleware