Update MainActivity.java

add test in MainActivity