AUI-1554 Create unit test for defaultValue

Ticket: [AUI-1554](https://issues.liferay.com/browse/AUI-1554)

Added a few extra tests for when `defaultValue` is undefined.