move to unittest
final testing shell script