Added insert statement generation and associated tests.