Move all tests in safe.common to safe.common.test

Hi @timlinux, I moved all the tests in safe.common to safe.common.test. It's just not nice seeing all the tests being put together with the main code inside a folder..