Modified assertions to avoid having multiple assertions in the same test