Added simple test for filter resource
Better JSON handling, build breaks but commiting anyway.