adding tests to improve coverage and make cobertura run with mockito and java 7