You most likely have a model called test.

Remove it with:

$ rails destroy model test

I ran into this issue after coming into a project where the client-code was developed first. An unused test model was created by the previous pair. As I began writing tests for the app, this test model caused a namespace conflict.