added unit tests for sunsettings