Allow errors up to a certain limit in test cases for a maven project