Create tests for John Resin's tutorial

Update type
Update function test
Update operator test