Adds authorized test. Clean up.