Add test coverage for 'profile' configurations

change the generated binary structure in filesystem
close #2