Update tests for linux environment
Trap exit and stop container