Added POST test, for checking that setting read-only property through constructor works.
Fixed closure capturing for RestQueryProvider.