better handling of true/false for testing method