fix outlining for all debug levels and add testing