Provided that your two images were shot with the same LVs (ambient light levels) and shutter speed as indicated, the f/4 image should be 1/2 as bright as your f/2.8 image but it appears they have nearly identical brightness, which means the lens did not properly stop down to f/4.