testing maxstate method