Adding test cases for the patch mentioned in #79