created method for generating the insertion statement as well as corresponding unit test