Validate entry test

Add unit tests for `ValidateEntry.java`