Refactor tests
This merge request is to refactor the tests and Gitlab CI file to remove unneeded docker image (as there is no docker registry in JYU gitlab the build phase + DIND is not needed). Tests are refactored in order to make them easier to be executed locally and also to enable the usage of Flask application context in the tests (so that we can test authenticated functions).