Adds JUnit and some tests for accounts

Signed-off-by: XemsDoom <moser.luca@gmail.com>