fixed tests + added coords for subpatches