unit tests for multiple attempts and tries