added function tests; updated ffmpeg build config