Added unit tests for pdf::tools::slice.