Added -all option. Corrected typedef usage in tests.