More complex tests and adding necessary newlines