Add bool magic method
Add randomized tests