test Synthesizer#cost