You should use a random ID instead of 2040. Depending on test execution order, another test may have logged in as 2040 before this test runs, causing a spurious test failure. 

Common way to get a random ID is:

```
@random_id = Time.now.to_f.to_s.gsub(".", "")
```