tests script fixed