Added "test" as an argument in netbeans project properties.
Added commandline args parsing.