Updated tests build script