tests for /notification_settings and more bug fixes