Add functional tests for destructuring.