added tests for and implemented deleting referring posts
Merge remote-tracking branch 'origin/master'