simplifying Application injection (finally) and adding a first end-to-end-ish test