Added unittest to check for bug fixed in last commit