Added tests and refactored
Added automatic conversion of Y/N/Yes/No/True/False to appropriate boolean values