Added exception handling Spring tests.