Add tests for bit operations

Signed-off-by: Josh Kilmer <srjek2@gmail.com>
I am a fool that did not the find tool when changing function definitions

Signed-off-by: Josh Kilmer <srjek2@gmail.com>