basic unit tests for #1