add bill test; add bill excel generator; fix bugs in dt compiler