Fix indexing of console log; Tests for builtin methods