Adds tests for #19.