fix bugs, start test