removed sign intermediate rule and added test cases