Fixed unittest for parsing patches.