added chai test