fix php requirements
added tests