fix the script to generate tests

also build release and not debug for testing