tests for the LA algorithm