More tests and bug fixes for the excel Functions