Moved project to a library and added test project.