fixed test script setup (should be used by travis)