Fix load(beat) check for instanceof Beat.

Add test for checking instanceof Beat check.