Fixing the assertion for invalid tests