Fixes #48. Some tests fails because we use real modules in test, that have been introduced in core but are not supposed to in the test