fix to run test automatically