I want to match a word and 0 or more letters after it. I have constructed the following `RegExp`: `/test\w*/`  

`\w` for any letter, `*` for zero or more match.  

However it works incorrectly. It matches **testing** **tests**, but not **test** itself.
Here is the code I am using for testing:

```
console.log(new RegExp("test" + "[\\w*]").test("tests")); // true
console.log(new RegExp("test" + "[\\w*]").test("test")); // false - should be true
console.log(new RegExp("test" + "[\\w*]").test("test-")); // false
console.log(new RegExp("test" + "[\\w*]").test("testing")); // true
console.log(new RegExp("test" + "[\\w*]").test("test@")); // false

```

**Update**
The expression works exactly as I wanted in [regexr.com](http://regexr.com/)