make tests that can run in browserify
fix the missing bytewise ops, and check that source defines valueOf