jasmine test for raphael introduced
fix for issues 587, 319