refactor tests
implement draw and first try at nearest
improve nearest