test for collection find by id using script and some code for script engine