added crack function and another test