Send test notification

General refactoring and clean up. Add end point for sending a test notification.