added bool, repr test to constraint