fix am test for Linux