Add support for testing (jUnit) and fix problems detected by lint