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.
It's renamed in a pending PR https://github.com/aspnet/KRuntime/pull/788 . So let's leave it untouched here.