added more unit tests and changed document preview size