Let's pass stuff to the constructor instead of letting it decide what to do

Signed-off-by: emanuele <emanuele45@gmail.com>
Lett globals in cache

Signed-off-by: emanuele <emanuele45@gmail.com>
Fixing tests

Signed-off-by: emanuele <emanuele45@gmail.com>