Refactor project to move non-library specific components into test package