LPS-38098 last part of  Search container refactor in portal 

Last commit about Seach container refactor to apply the new pattern. It implies more changes than other cases so I've isolate it and make a bunch of test.

In order to add this test, I've modified a test class.

It has already been revised by Julio