fix regexp to determine file is test