added more tests to bulk upsert and updated docs