(bug) add chai as local dependency