added tests for insert