Fixes bugs in test_s3_ec2_images

*State variable reference was missing
*tests deregister_image functionality
*removes skip from test_register_get_deregister_aki_image

Change-Id: Ia62927587e34259a529e90e032027425a8bf753c
Merge "Fixes bugs in test_s3_ec2_images"