fixed insert added tests