create and test basic implementation of insert