Added further tests to cover warnings and errors