Completed unit tests for Square and BitFlags.