Add test to check property assignement from scalar to NSNumber.
Improved code to check whether the two fields assignement is possible.