adding tests for #39