Adapted unit tests from Phalcon project (#5)