Fix id usage in where clause
Add more tests
Merge pull request #38 from strongloop/feature/fix-where-id

Fix id usage in where clause