add unit tests for single day view