Split into common and test projects, fixed #4.