Fixed prepare test