Adjustments to test configuration for Linux

Added tests to check concordance between return values and error struct