adding unit tests for imgUrl and correcting warning for bindAttr