add a mini test runner for easier testing
add default base template if user didn't provide one.