added tests for generator, no tests for activerecord table reading

So here are few tests. I also managed to fix the problem with passing arguments. You always had 'pl' right? Now it works as it should.