Fixed spec configuration
add functional tests