fixed small bug in _schema_template

Hi Peter,

there was a missing whitespace in _schema_template().
I have fixed that and created a testcase.

Best regards from Dresden
Holger