bug fix when evaluating wheter where if a function
added more test for find and findAll options formatting