Fixed donation manager, added unittests for the homepage API