tests: handle json correctly and compare buffer lengths for svg
fix expected svg output using node-mapnik >= 1.1.1 - closes #6