add some unit tests for DrawOnView