Updated tests and validator returns null if attribute not found