engine: added draw function
updated tests to run directly