am-project: Fix failures due to the previous patches in the regression test