moved inference testing code to subdirectory for tidiness