BUG-1199 : fixed small mistake in Pcerr, added a test

Change-Id: I89e5812a66d711951f78a60473e06f0a1eabaf9e
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>