added some unit tests, made fifi an static lib