Added regex to tests