[#957] make FunctionalTest work with asynchronous controllers

Some tests were fixed since my last pull request for this issue, could you please reconsider? Please see Lighthouse for details.