Moved install parts of unit tests into unit tests