fixed chai test