Tests set-up and tests for helpers