Fixed beforeShowDay test