added test for adding an obligation through servr

added test for adding an obligation through servr, deleted alert I
missed with last commit
re factored addobligation for testing

re factored addobligation for testing, added another constructor for
obligation creation