Added test for matches()