fixed tests Main