Added more tests for preg_match .

Signed-off-by: Rack Lin <racklin@gmail.com>