Renamed test
Turned project into a lib instead of exe
Added write tests