Fix importing of tests and installation dirs for data/tests