add tests and minor fix for xls module