first attempt at tests thanks to @qadan's awesome work