testing points inside model with cos