Enable running tests in modules other than build-profile when PERL5LIB is defined

Allow to disable tests in build-profile to enable running them in other modules when PERL5LIB is defined.

Alternative to #27.

Seems to work but as there is no unit tests currently available it would be good to do a real test...