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.
Can we add underlines to make the function more readable?