Add test for checking empty document