fixed test cases to run with deftjs