Add functional tests for application host

Follow @davidfowl 's suggestion here: https://github.com/aspnet/KRuntime/pull/808

add functional tests for `k` command to prevent any further regression.
There is another PR containing newly added functional tests. Let me fix this problem in a separate PR, after #825 and #788 are merged in.