Added unit test and fix for Boolean resource