add optimized check
add test-optimized on travis