use core assert instead of chai