added tests for isRegExp and isArray