Fix test to work with job profiling

Job profiling leaves a file open
Fix to strigger test

Duplicate triggers are not not allowed