Update and fix byDay queries and tests for them