improving build script for tests