#16 Serialized scope
#16 Added test cases