Ideally you want a 2.5 or more gallon tank, but they will do fine in a tank like that.

Sometimes water disturbance can stress them out, so a filter can do more harm than good. BUT some do good with one, some don't.