fixed issue #515 and added test case for same

@mitechie very sorry. The message should be 4 users. Sorry for the typo.