[Fix] Warning filter in fluctuating LB test
The fluctuating LB test used an old syntax of the pytest module to check for warnings. This now triggers an error and lets the test fail. With this MR new syntax suggested by the pytest package is used.
Furthermore, fix of some warnings