added byDate tests all passing