Add some tests for taskstatus and mailstatus