add a new way to save feature in test.java

Signed-off-by: yuanhuan <yuanhuan@tcl.com>