Added test functions for stack project