Throw UnexpectedValueException on improper day number.

Signed-off-by: Max Fierke <max@maxfierke.com>
Add unit tests for Settings entity.

Signed-off-by: Max Fierke <max@maxfierke.com>