Make the extension template's default rake task run the test_app rake task if necessary

Fixes #4396
Remove oj dependency due to #4431

Fixes #4431