Compare binary key to identifier in assertions

Resolves: https://www.pivotaltracker.com/story/show/72628004