fixed fragile test cases