Added tests for the elementary function.