adds more error checks and unit tests for forums