Fixed error statements and Linux tests