Added insertion method and test classes