added specs for testing schemes related functions