added test for resizeCanvas
added tests for parseColor
bugfix