Fixed minor bug and added test-pe_monitor.

Change-Id: I016d2311f5cc5e57792eb81a9150c4869da064b4
Signed-off-by: Scott Mann <smann@noironetworks.com>