allow leading whitespace and comments
add portable test