Lakers edge Boston, Toronto tune up in NBA