Functional tests for #1180