added usage of -run-wait to Makefile in tests