added tests to check for incorrect behaviour