Extract common test setup items.