fixed a bug in regexp test