Add initial functional tests for k.cmd (ApplicationHost)