make sure install dir is not hidden, factor duplicate code in ActiveMNS, fix unit tests