some unit tests for #123