Corrected attribute setting in nextFrame and prevFrame functions.
Added frame navigation tests.