Add tests for libs; fixed lockfile bug in ffserver-relay