broctron.register_pattern tests