Add tests for SpoofUser

Change-Id: I42d952df3db4f94c5b581b7bb62f5afc1ede274a