Fixed typo in tests and moved warnings to bottom of o