Tests for nested recursive searches and better formatting