Fix values where incorrectly casted

Input values to check_expected where incorrectly being casted
as a ValuePointer.
Fixed code that checks memory

The code casted the value that was being checked incorrectly,
there is no need to cast the value to check.

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1079647

Signed-off-by: Luis Pabon <lpabon@redhat.com>