Fixes issues with testing draw().