Implemented functional tests for insert scenario