Bench and functional tests