Move tests of common code to common as well