updated all function to use self.each and created elementary tests for find and inject