fixed algebra tests