the testnet client is unable to mine via setgenerate true.
Sadly neither
generate nor
generatetoaddress seem to do much more than generate reams of error messages. But at least there are error messages, unlike the sullen silence of setgenerate 
Cheers
Graham