added more tests. fixed error is set()