add test file
fixed template compile issues, problem with compile still