Fixes #2713: using relations defined in behavior may throw exception in lazy loading.
added unit tests for boolean attributes

fixes #1022
Update ActiveFormTest.php