added optional reference test
added some ticket tests