Adds tests for field assignment