added jasmine tests for draw