Added rspecs for automation testing to the code.