Improve the is_tap method in Tapir::Parser and add some tests