Added test for deprecation warning when calling assign shortcut