Add test for getting earnings by date