adding units tests for #44