Use full if/else to fix have_and_belong_to_many assertion