Testing Ruby bitwise operations and PDF file generating.