Add proper tests for LDF