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.
Test like this will be fragile since the output content may subject to change frequently. Can we pull these content from a resource, or somehow share it with product code?