Add test and fix for flags bug
Increase version