Tests for functions and AS