Move chai to test file