added some static main methods and tests