using chai framework instead of script