[builder] match method + unit tests