Fixing bug on test_ehdr