Improve tests a little. Minor fix to LYAP() code.