Add UI tests. Add error handling and max post count var.