added unit test to check loading drawing code twice