Standalone test script for 'setattr' like bit mask calculations