added tests to check fails.
merged