Removed == false usage.
Added unit test functionality.